package round76;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

/**
 * User: Samuel
 * Date: 07-08-11
 * Time: 08:45 AM
 */
public class B {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(in.readLine());
        List<Pair> list = new ArrayList<Pair>();
        String split[];
        for (int i = 0; i < N; i++) {
            split = in.readLine().split(" ");
            list.add(new Pair(Integer.parseInt(split[0]), Integer.parseInt(split[1])));
        }
        
    }

    static class Pair {
        int a,b;

        Pair(int a, int b) {
            int min = Math.min(a, b);
            int max = Math.max(a, b);
            this.a = min;
            this.b = max;
        }
        
    }
}
